package com.yanqu.road.logic.bussiness.crossbanquet;

import com.yanqu.road.entity.banquet.auto.CrossBanquetAutoData;
import com.yanqu.road.entity.banquet.auto.CrossBanquetAutoJoinLog;
import com.yanqu.road.entity.banquet.cross.CrossBanquetMember;
import com.yanqu.road.entity.banquet.cross.CrossBanquetRecord;
import com.yanqu.road.entity.banquet.cross.CrossBanquetData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class CrossBanquetBussiness {

	public static Map<String, CrossBanquetData> getUserCrossBanquetMap() {
		return DaoHelper.getCrossBanquetDaoImpl().getRunningCrossBanquetMap();
	}

	public static boolean addCrossBanquet(CrossBanquetData data) {
		return DaoHelper.getCrossBanquetDaoImpl().add(data);
	}

	public static boolean updateCrossBanquet(CrossBanquetData data) {
		return DaoHelper.getCrossBanquetDaoImpl().update(data);
	}

    public static Map<String,Map<Long, CrossBanquetMember>> getAllCrossBanquetMemberMap() {
        return DaoHelper.getCrossBanquetMemberDaoImpl().getAllCrossBanquetMemberMap();
    }

    public static Map<Long, CrossBanquetMember> getCrossBanquetMemberMap(String banquetId) {
        return DaoHelper.getCrossBanquetMemberDaoImpl().getCrossBanquetMemberMap(banquetId);
    }

    public static boolean addCrossBanquetMember(CrossBanquetMember data) {
        return DaoHelper.getCrossBanquetMemberDaoImpl().add(data);
    }

    public static boolean addCrossBanquetMemberList(List<CrossBanquetMember> dataList) {
        return DaoHelper.getCrossBanquetMemberDaoImpl().addCrossBanquetMemberList(dataList);
    }

    public static boolean updateCrossBanquetMember(CrossBanquetMember data){
        return DaoHelper.getCrossBanquetMemberDaoImpl().update(data);
    }

    public static Map<String, CrossBanquetRecord> getCrossBanquetRecordMap(long expireTime) {
        return DaoHelper.getCrossBanquetRecordDaoImpl().getBanquetRecordMap(expireTime);
    }

    public static boolean addCrossBanquetRecord(CrossBanquetRecord data) {
        return DaoHelper.getCrossBanquetRecordDaoImpl().add(data);
    }


    public static Map<Long, CrossBanquetAutoData> getCrossBanquetAutoMap(int activityId) {
        return DaoHelper.getCrossBanquetAutoDaoImpl().getCrossBanquetAutoMap(activityId);
    }

    public static boolean addCrossBanquetAuto(CrossBanquetAutoData data) {
        return DaoHelper.getCrossBanquetAutoDaoImpl().add(data);
    }

    public static boolean updateCrossBanquetAuto(CrossBanquetAutoData data) {
        return DaoHelper.getCrossBanquetAutoDaoImpl().update(data);
    }

    public static Map<Long, List<CrossBanquetAutoJoinLog>> getCrossBanquetAutoJoinLogMap(int activityId) {
        return DaoHelper.getCrossBanquetAutoJoinDaoImpl().getCrossBanquetAutoJoinLogMap(activityId);
    }

    public static boolean addCrossBanquetAutoJoinLog(CrossBanquetAutoJoinLog data) {
        return DaoHelper.getCrossBanquetAutoJoinDaoImpl().add(data);
    }

    public static boolean updateCrossBanquetAutoJoinLog(CrossBanquetAutoJoinLog data) {
        return DaoHelper.getCrossBanquetAutoJoinDaoImpl().update(data);
    }
}
